package com.baking.service.impl;

import com.baking.dao.LoginMapper;
import com.baking.model.User;
import com.baking.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:wrb
 * @Date :2019/12/22/18:21
 * @Describtion:
 **/
@Service
public class LoginServiceImpl implements ILoginService {
    @Autowired
    LoginMapper loginMapper;
    @Override
    public List<User> getUser(User user) {
        List<User> getUse = new ArrayList<User>();
        try{
            getUse = loginMapper.getUser(user);
        }catch (Exception e){
            e.printStackTrace();
        }

        return getUse;
    }

}
